package cn.eclass.bean.api;

import cn.eclass.entity.SchoolLinkEntity;
import cn.eclass.utils.Page;
import java.util.List;

public interface ISchoolLinkBean extends ICommonBean<SchoolLinkEntity> {

    //List all schoolLinks under a certain category.
    List<SchoolLinkEntity> getSchoolLinkByCat(int catId, int itemPerPage, int pageNo);

    List<SchoolLinkEntity> search(String search, int itemPerPage, int pageNo);

    int countSearch(String search);

    Page getPaginationByCat(int catId, int itemPerPage, String currentUrl);

    Page getPagination();

    int getMaxItemByCat(int catId);
}
